%option noyywrap
%{
#include<string>
#include<set>
#include<iostream>
using namespace std;
int counter=0;
set<string>table;
%}
digit	[0-9]
result	{digit}+(\.{digit}+)?(E[+\-]?{digit}+)?

%%
^[0-9]{9}	{cout<<"201492240";}
NAME$	{cout<<"LL";}
{result}	{cout<<(long long int)(atof(yytext)*2+201492240+0.5);counter++;table.insert(yytext);}
.	{ECHO;}
%%
int main()
{
yylex();
cout<<"出现次数"<<counter<<" "<<"去除重复次数后的出现次数为"<<table.size()<<endl;
return 0;
}
